﻿{
	"ProcessTemplates": [
		{
			"Name": "JSON file from SFTP server to Microsoft SQL database UPDATE",
			"Modified": "2024-05-13T09:35:06.4308089",
			"Modifier": "jefim.borissov@frends.com",
			"Tags": [
				"Json",
				"SFTP",
				"MicrosoftSQL"
			],
			"TemplateProcessTags": [],
			"Description": "This process will retrieve a **JSON file** from the specified **SFTP** server.\nIt will take the contents of the file and use it to  create an **Microsoft SQL database** update statement. It will then execute the statement on the specified database.",
			"Version": 1,
			"UniqueIdentifier": "caf84641-0ced-4741-810c-bb1b6e53c10f",
			"ProcessVariablesJson": "{\"FilePath\":{\"Value\":\"\\\"/\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Path to input JSON file.\"},\"FileName\":{\"Value\":\"\\\"example.json\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Name of input JSON file.\"},\"ServerAddress\":{\"Value\":\"\\\"127.0.0.1\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"SFTP server address.\"},\"ServerUser\":{\"Value\":\"\\\"user\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"SFTP server user.\"},\"ServerPassword\":{\"Value\":\"\\\"password\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"SFTP Server User's Password.\"},\"MicrosoftConnectionString\":{\"Value\":\"\\\"Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;\\\"\",\"IsSecret\":true,\"Mode\":\"text\",\"Description\":\"Database connection string.\"},\"TableName\":{\"Value\":\"\\\"table\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Name of table to be updated.\"},\"RowIndentifier\":{\"Value\":\"\\\"email\\\"\",\"IsSecret\":false,\"Mode\":\"text\",\"Description\":\"Column name in the database that identifies individual rows.\"}}",
			"ProcessInfo": {
				"Process": {
					"Name": "JSON file from SFTP server to Microsoft SQL database UPDATE",
					"Modified": "2024-05-13T09:35:06.4308089",
					"Modifier": "jefim.borissov@frends.com",
					"TagString": null,
					"Tags": [],
					"Description": "This process will retrieve a **JSON file** from the specified **SFTP** server.\nIt will take the contents of the file and use it to  create an **Microsoft SQL database** update statement. It will then execute the statement on the specified database.",
					"Version": 1,
					"UniqueIdentifier": "b2c80aea-a764-4cbe-920c-99d1f1988b0c",
					"GraphJson": null,
					"Bpmn": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn2:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:bpmn2=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"sample-diagram\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><bpmn2:process id=\"Process_1\" isExecutable=\"false\"><bpmn2:startEvent id=\"StartEvent_1\" name=\"Manual Trigger\"><bpmn2:outgoing>Flow_0pdno6e</bpmn2:outgoing></bpmn2:startEvent><bpmn2:sequenceFlow id=\"Flow_0pdno6e\" sourceRef=\"StartEvent_1\" targetRef=\"Activity_1t3j2vx\" /><bpmn2:task id=\"Activity_1t3j2vx\" name=\"Read JSON file from SFTP server\"><bpmn2:incoming>Flow_0pdno6e</bpmn2:incoming><bpmn2:outgoing>Flow_0hrntp0</bpmn2:outgoing><bpmn2:property id=\"Property_1qc75f2\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_17r5rlk\"><bpmn2:sourceRef>DataObjectReference_0ksp4rn</bpmn2:sourceRef><bpmn2:targetRef>Property_1qc75f2</bpmn2:targetRef></bpmn2:dataInputAssociation><bpmn2:standardLoopCharacteristics /></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_0hrntp0\" sourceRef=\"Activity_1t3j2vx\" targetRef=\"Gateway_14nb58k\" /><bpmn2:exclusiveGateway id=\"Gateway_14nb58k\" name=\"File read successful?\" default=\"Flow_1ocmszp\"><bpmn2:incoming>Flow_0hrntp0</bpmn2:incoming><bpmn2:outgoing>Flow_15faxvr</bpmn2:outgoing><bpmn2:outgoing>Flow_1ocmszp</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:dataObjectReference id=\"DataObjectReference_0ksp4rn\" name=\"JSON file\" dataObjectRef=\"DataObject_1mqe5m5\" /><bpmn2:dataObject id=\"DataObject_1mqe5m5\" /><bpmn2:endEvent id=\"Event_03t2e5b\"><bpmn2:incoming>Flow_0auey22</bpmn2:incoming></bpmn2:endEvent><bpmn2:scriptTask id=\"Activity_1mnaiqp\" name=\"Create update statement\"><bpmn2:incoming>Flow_1irxh6o</bpmn2:incoming><bpmn2:outgoing>Flow_18qzmuc</bpmn2:outgoing></bpmn2:scriptTask><bpmn2:task id=\"Activity_0hqwryq\" name=\"Execute batch UPDATE\"><bpmn2:incoming>Flow_18qzmuc</bpmn2:incoming><bpmn2:outgoing>Flow_0i8knm8</bpmn2:outgoing><bpmn2:property id=\"Property_1ubn78z\" name=\"__targetRef_placeholder\" /><bpmn2:dataInputAssociation id=\"DataInputAssociation_0isj3v6\"><bpmn2:sourceRef>DataStoreReference_17u1wnf</bpmn2:sourceRef><bpmn2:targetRef>Property_1ubn78z</bpmn2:targetRef></bpmn2:dataInputAssociation></bpmn2:task><bpmn2:dataStoreReference id=\"DataStoreReference_17u1wnf\" name=\"Database\" /><bpmn2:exclusiveGateway id=\"Gateway_1cfy5qs\" name=\"Database update successful?\" default=\"Flow_0ii2h4h\"><bpmn2:incoming>Flow_0i8knm8</bpmn2:incoming><bpmn2:outgoing>Flow_0auey22</bpmn2:outgoing><bpmn2:outgoing>Flow_0ii2h4h</bpmn2:outgoing></bpmn2:exclusiveGateway><bpmn2:sequenceFlow id=\"Flow_0auey22\" name=\"yes\" sourceRef=\"Gateway_1cfy5qs\" targetRef=\"Event_03t2e5b\" /><bpmn2:sequenceFlow id=\"Flow_18qzmuc\" sourceRef=\"Activity_1mnaiqp\" targetRef=\"Activity_0hqwryq\" /><bpmn2:sequenceFlow id=\"Flow_0i8knm8\" sourceRef=\"Activity_0hqwryq\" targetRef=\"Gateway_1cfy5qs\" /><bpmn2:task id=\"Activity_1rrz8m9\" name=\"Parse JSON file contents\"><bpmn2:incoming>Flow_15faxvr</bpmn2:incoming><bpmn2:outgoing>Flow_1irxh6o</bpmn2:outgoing></bpmn2:task><bpmn2:sequenceFlow id=\"Flow_15faxvr\" name=\"yes\" sourceRef=\"Gateway_14nb58k\" targetRef=\"Activity_1rrz8m9\" /><bpmn2:sequenceFlow id=\"Flow_1irxh6o\" sourceRef=\"Activity_1rrz8m9\" targetRef=\"Activity_1mnaiqp\" /><bpmn2:intermediateThrowEvent id=\"Event_0maleg4\" name=\"Throw an error if the file is empty\"><bpmn2:incoming>Flow_1ocmszp</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_1ocmszp\" name=\"no\" sourceRef=\"Gateway_14nb58k\" targetRef=\"Event_0maleg4\" /><bpmn2:intermediateThrowEvent id=\"Event_1wgw5vs\" name=\"Throw an error if update was not successful\"><bpmn2:incoming>Flow_0ii2h4h</bpmn2:incoming><bpmn2:signalEventDefinition /></bpmn2:intermediateThrowEvent><bpmn2:sequenceFlow id=\"Flow_0ii2h4h\" name=\"no\" sourceRef=\"Gateway_1cfy5qs\" targetRef=\"Event_1wgw5vs\" /><bpmn2:group id=\"Group_1m3lbwj\" categoryValueRef=\"CategoryValue_1rk699b\" /><bpmn2:textAnnotation id=\"TextAnnotation_0lqwta1\"><bpmn2:text>Use JSON content to create UPDATE statement.</bpmn2:text></bpmn2:textAnnotation><bpmn2:association id=\"Association_1k82moa\" sourceRef=\"Activity_1mnaiqp\" targetRef=\"TextAnnotation_0lqwta1\" /><bpmn2:group id=\"Group_0mir09y\" categoryValueRef=\"CategoryValue_1wo8bir\" /></bpmn2:process><bpmn2:category id=\"Category_1y62c6d\"><bpmn2:categoryValue id=\"CategoryValue_1rk699b\" value=\"Update the database\" /></bpmn2:category><bpmn2:category id=\"Category_07m4n6n\"><bpmn2:categoryValue id=\"CategoryValue_1wo8bir\" value=\"Read JSON from SFTP server\" /></bpmn2:category><bpmndi:BPMNDiagram id=\"BPMNDiagram_1\"><bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1\"><bpmndi:BPMNShape id=\"BPMNShape_190lrq6\" bpmnElement=\"TextAnnotation_0lqwta1\"><dc:Bounds x=\"810\" y=\"353\" width=\"150.0000069834275\" height=\"54.919908466819216\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_1\"><dc:Bounds x=\"292\" y=\"240\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"274\" y=\"276\" width=\"75\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1t3j2vx_di\" bpmnElement=\"Activity_1t3j2vx\"><dc:Bounds x=\"380\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Gateway_14nb58k_di\" bpmnElement=\"Gateway_14nb58k\" isMarkerVisible=\"true\"><dc:Bounds x=\"535\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"531\" y=\"196\" width=\"58\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1rrz8m9_di\" bpmnElement=\"Activity_1rrz8m9\"><dc:Bounds x=\"640\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"BPMNShape_06rsf7n\" bpmnElement=\"Activity_1mnaiqp\"><dc:Bounds x=\"810\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_0maleg4_di\" bpmnElement=\"Event_0maleg4\"><dc:Bounds x=\"542\" y=\"362\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"519\" y=\"405\" width=\"82\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"DataObjectReference_0ksp4rn_di\" bpmnElement=\"DataObjectReference_0ksp4rn\"><dc:Bounds x=\"412\" y=\"355\" width=\"36\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"407\" y=\"412\" width=\"47\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0hqwryq_di\" bpmnElement=\"Activity_0hqwryq\"><dc:Bounds x=\"970\" y=\"218\" width=\"100\" height=\"80\" /><bpmndi:BPMNLabel /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"BPMNShape_1cpsth5\" bpmnElement=\"DataStoreReference_17u1wnf\"><dc:Bounds x=\"995\" y=\"355\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"996\" y=\"412\" width=\"48\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"BPMNShape_0mub7d9\" bpmnElement=\"Gateway_1cfy5qs\" isMarkerVisible=\"true\"><dc:Bounds x=\"1135\" y=\"233\" width=\"50\" height=\"50\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1121\" y=\"196\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"BPMNShape_11w1wiu\" bpmnElement=\"Event_03t2e5b\"><dc:Bounds x=\"1272\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Event_1wgw5vs_di\" bpmnElement=\"Event_1wgw5vs\"><dc:Bounds x=\"1142\" y=\"362\" width=\"36\" height=\"36\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1120\" y=\"405\" width=\"82\" height=\"40\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"BPMNEdge_01be9ag\" bpmnElement=\"Association_1k82moa\"><di:waypoint x=\"858\" y=\"298\" /><di:waypoint x=\"858\" y=\"353\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0pdno6e_di\" bpmnElement=\"Flow_0pdno6e\"><di:waypoint x=\"328\" y=\"258\" /><di:waypoint x=\"380\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_17r5rlk_di\" bpmnElement=\"DataInputAssociation_17r5rlk\"><di:waypoint x=\"431\" y=\"355\" /><di:waypoint x=\"430\" y=\"298\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0hrntp0_di\" bpmnElement=\"Flow_0hrntp0\"><di:waypoint x=\"480\" y=\"258\" /><di:waypoint x=\"535\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0auey22_di\" bpmnElement=\"Flow_0auey22\"><di:waypoint x=\"1185\" y=\"258\" /><di:waypoint x=\"1272\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1218\" y=\"266\" width=\"18\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_18qzmuc_di\" bpmnElement=\"Flow_18qzmuc\"><di:waypoint x=\"910\" y=\"258\" /><di:waypoint x=\"970\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0i8knm8_di\" bpmnElement=\"Flow_0i8knm8\"><di:waypoint x=\"1070\" y=\"258\" /><di:waypoint x=\"1135\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_15faxvr_di\" bpmnElement=\"Flow_15faxvr\"><di:waypoint x=\"585\" y=\"258\" /><di:waypoint x=\"640\" y=\"258\" /><bpmndi:BPMNLabel><dc:Bounds x=\"604\" y=\"240\" width=\"18\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1irxh6o_di\" bpmnElement=\"Flow_1irxh6o\"><di:waypoint x=\"740\" y=\"258\" /><di:waypoint x=\"810\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_1ocmszp_di\" bpmnElement=\"Flow_1ocmszp\"><di:waypoint x=\"560\" y=\"283\" /><di:waypoint x=\"560\" y=\"362\" /><bpmndi:BPMNLabel><dc:Bounds x=\"569\" y=\"319\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"DataInputAssociation_0isj3v6_di\" bpmnElement=\"DataInputAssociation_0isj3v6\"><di:waypoint x=\"1020\" y=\"355\" /><di:waypoint x=\"1020\" y=\"298\" /></bpmndi:BPMNEdge><bpmndi:BPMNEdge id=\"Flow_0ii2h4h_di\" bpmnElement=\"Flow_0ii2h4h\"><di:waypoint x=\"1160\" y=\"283\" /><di:waypoint x=\"1160\" y=\"362\" /><bpmndi:BPMNLabel><dc:Bounds x=\"1169\" y=\"320\" width=\"13\" height=\"14\" /></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Group_0mir09y_di\" bpmnElement=\"Group_0mir09y\"><dc:Bounds x=\"350\" y=\"150\" width=\"410\" height=\"310\" /><bpmndi:BPMNLabel><dc:Bounds x=\"513\" y=\"157\" width=\"84\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Group_1m3lbwj_di\" bpmnElement=\"Group_1m3lbwj\"><dc:Bounds x=\"780\" y=\"150\" width=\"460\" height=\"310\" /><bpmndi:BPMNLabel><dc:Bounds x=\"985\" y=\"157\" width=\"54\" height=\"27\" /></bpmndi:BPMNLabel></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn2:definitions>",
					"ElementParameters": "[{\"Id\":\"StartEvent_1\",\"Type\":0,\"Parameters\":{},\"SelectedTypeId\":\"ManualTrigger\",\"PromoteResultAs\":null,\"Name\":\"Manual Trigger\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1t3j2vx\",\"Type\":1,\"Parameters\":{\"input\":{\"Path\":{\"mode\":\"text\",\"value\":\"{{#var.FilePath}}{{#var.FileName}}\"},\"FileEncoding\":{\"mode\":\"select\",\"value\":\"ANSI\"},\"EnableBom\":{\"mode\":\"toggle\",\"value\":false},\"EncodingInString\":{\"mode\":\"text\",\"value\":\"\"}},\"connection\":{\"ConnectionTimeout\":{\"mode\":\"integer\",\"value\":60},\"Address\":{\"mode\":\"csharp\",\"value\":\"#var.ServerAddress\"},\"Port\":{\"mode\":\"integer\",\"value\":22},\"Authentication\":{\"mode\":\"select\",\"value\":\"UsernamePassword\"},\"Username\":{\"mode\":\"csharp\",\"value\":\"#var.ServerUser\"},\"Password\":{\"mode\":\"csharp\",\"value\":\"#var.ServerPassword\"},\"PrivateKeyFile\":{\"mode\":\"text\",\"value\":\"\"},\"PrivateKeyString\":{\"mode\":\"text\",\"value\":\"\"},\"PrivateKeyPassphrase\":{\"mode\":\"text\",\"value\":\"\"},\"ServerFingerPrint\":{\"mode\":\"text\",\"value\":\"\"},\"HostKeyAlgorithm\":{\"mode\":\"select\",\"value\":\"Any\"},\"UseKeyboardInteractiveAuthentication\":{\"mode\":\"toggle\",\"value\":false},\"PromptAndResponse\":[],\"BufferSize\":{\"mode\":\"integer\",\"value\":32}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/7fe311ed-3e37-4669-8c6b-9e5792e996d0/v1\",\"PromoteResultAs\":null,\"Name\":\"Read JSON file from SFTP server\",\"Description\":\"\",\"IsDefault\":null,\"ShouldRetry\":true,\"MaxRetryCount\":3,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_14nb58k\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"!String.IsNullOrEmpty(#result[Read JSON file from SFTP server].Content)\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"File read successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataObjectReference_0ksp4rn\",\"Type\":21,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"JSON file\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_03t2e5b\",\"Type\":5,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"Successfully updated {{#result[Execute batch UPDATE].RecordsAffected}} data rows into {{#var.TableName}}.\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1mnaiqp\",\"Type\":12,\"Parameters\":{\"useStatementMode\":{\"mode\":\"toggle\",\"value\":true},\"variableExpression\":{\"mode\":\"csharp\",\"value\":\"{\\n    var arr = #result[Parse JSON file contents].Jtoken as JArray;\\n    var setClause = \\\"\\\";\\n    \\n    foreach(JProperty a in (JToken)arr[0])\\n    {\\n        if(a.Name == #var.RowIndentifier) continue;\\n\\n        setClause += $\\\"{a.Name} = @{a.Name}, \\\";\\n    }\\n            \\n    setClause = setClause.Remove(setClause.Length-2);\\n\\n    return $\\\"UPDATE {#var.TableName} SET {setClause} WHERE {#var.RowIndentifier} = @{#var.RowIndentifier}\\\";\\n}\"},\"shouldAssignVariable\":{\"mode\":\"toggle\",\"value\":true},\"variableName\":\"updStmt\"},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Create update statement\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_0hqwryq\",\"Type\":1,\"Parameters\":{\"input\":{\"ConnectionString\":{\"mode\":\"csharp\",\"value\":\"#var.MicrosoftConnectionString\"},\"Query\":{\"mode\":\"csharp\",\"value\":\"#var.updStmt\"},\"InputJson\":{\"mode\":\"csharp\",\"value\":\"#result[Read JSON file from SFTP server].Content\"}},\"options\":{\"ThrowErrorOnFailure\":{\"mode\":\"toggle\",\"value\":true},\"CommandTimeoutSeconds\":{\"mode\":\"integer\",\"value\":60},\"SqlTransactionIsolationLevel\":{\"mode\":\"select\",\"value\":\"ReadCommitted\"}},\"cancellationToken\":null},\"SelectedTypeId\":\"/ProcessTask/a5f1ccbf-8213-4589-81a0-1a1e6d37af60/v1\",\"PromoteResultAs\":null,\"Name\":\"Execute batch UPDATE\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"DataStoreReference_17u1wnf\",\"Type\":22,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Database\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Gateway_1cfy5qs\",\"Type\":2,\"Parameters\":{\"expression\":{\"mode\":\"csharp\",\"value\":\"#result[Execute batch UPDATE].Success\"}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"Database update successful?\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0auey22\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Activity_1rrz8m9\",\"Type\":1,\"Parameters\":{\"input\":{\"Json\":{\"mode\":\"csharp\",\"value\":\"#result[Read JSON file from SFTP server].Content\"}}},\"SelectedTypeId\":\"/ProcessTask/fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6/v2\",\"PromoteResultAs\":null,\"Name\":\"Parse JSON file contents\",\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":false,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_15faxvr\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"yes\",\"Description\":null,\"IsDefault\":false,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_0maleg4\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occured reading the input file {{#var.FileName}} from SFTP server {{#var.ServerAddress}} - the file is empty.\"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_1ocmszp\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Event_1wgw5vs\",\"Type\":6,\"Parameters\":{\"expression\":{\"mode\":\"text\",\"value\":\"An error occured updating the database table {{#var.TableName}}. \"},\"bypassGlobalExceptionHandler\":{\"mode\":\"toggle\",\"value\":true}},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":null,\"Description\":null,\"IsDefault\":null,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null},{\"Id\":\"Flow_0ii2h4h\",\"Type\":4,\"Parameters\":{},\"SelectedTypeId\":null,\"PromoteResultAs\":null,\"Name\":\"no\",\"Description\":null,\"IsDefault\":true,\"ShouldRetry\":null,\"MaxRetryCount\":null,\"ShouldNotLogResult\":null,\"ShouldDispose\":null}]",
					"ManualTriggerJson": "[]",
					"IsSubprocess": false,
					"TriggersJson": "[{\"$type\":\"ManualTrigger\",\"config\":{},\"name\":\"Manual Trigger\",\"id\":\"StartEvent_1\",\"shouldNotLogParameters\":null}]",
					"AssemblyName": null,
					"PackageId": null,
					"PackageVersion": null,
					"UsedTasksJson": "[\"/ProcessTask/7FE311ED-3E37-4669-8C6B-9E5792E996D0/v1\",\"/ProcessTask/FC3F0FFD-4F6D-4A54-8D19-EF4D00A6B1A6/v2\",\"/ProcessTask/A5F1CCBF-8213-4589-81A0-1A1E6D37AF60/v1\"]",
					"UsedSubprocessesJson": "{}",
					"ProcessExecutionVersion": "",
					"FrendsVersion": "5.7.2.1685",
					"TargetFramework": "net8.0",
					"StaticRequiredEnvironmentVariables": [],
					"RequiredEnvironmentVariables": [],
					"PromotedResultVariablesJson": "[]",
					"MajorVersion": 1,
					"MinorVersion": 0,
					"IsForMonitoringRule": false,
					"ProcessVariablesJson": null
				},
				"LinkedTasks": {
					"b2c80aea-a764-4cbe-920c-99d1f1988b0c": [
						{
							"Id": "7fe311ed-3e37-4669-8c6b-9e5792e996d0",
							"PackageId": "Frends.SFTP.ReadFile",
							"PackageVersion": "2.1.0",
							"Name": "Frends.SFTP.ReadFile.SFTP.ReadFile(Input, Connection, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "fc3f0ffd-4f6d-4a54-8d19-ef4d00a6b1a6",
							"PackageId": "Frends.JSON.ConvertJSONStringToJToken",
							"PackageVersion": "1.0.1",
							"Name": "Frends.JSON.ConvertJSONStringToJToken.JSON.ConvertJSONStringToJToken(Input)",
							"FrameworkIdentifier": ".NETCoreApp"
						},
						{
							"Id": "a5f1ccbf-8213-4589-81a0-1a1e6d37af60",
							"PackageId": "Frends.MicrosoftSQL.BatchOperation",
							"PackageVersion": "1.0.0",
							"Name": "Frends.MicrosoftSQL.BatchOperation.MicrosoftSQL.BatchOperation(Input, Options, CancellationToken)",
							"FrameworkIdentifier": ".NETCoreApp"
						}
					]
				},
				"LinkedSubProcess": {},
				"Version": "Acc41"
			}
		}
	]
}